<?php


namespace App\Transformers\Product;


use App\Models\ProductRule;
use League\Fractal\TransformerAbstract;

class ProductRuleTransformer extends TransformerAbstract
{

    public function transform(ProductRule $data)
    {
        return [
            'id' => $data->id,
            'title' => $data->title ?? '',
            'content' => $data->content ?? '',
        ];
    }



}
